package com.mktravel.thailand

class Category {
	static hasMany = [categoryLanguage: CategoryLanguage]
	
	// Xac dinh xem co phai la Sub-Category hay ko
	boolean isSubCategory
	// [mainCategory] se co value khi [isSubCategory = true] <-- chu y
	Category mainCategory
	
	// 0: News
	// 1: Destination
	// 2: Travel style
	int type

    static constraints = {
		mainCategory nullable:true
    }
}
